import {MATERIAL_TYPE_MAPS} from "@/config/enum";

export interface MaterialDirectoryDto {
  init?: boolean;
  name?: number;
  platform?: number;
  userId?: number;
  root?: boolean;
  parentId?: number;
  layer?: number;
  deep?: number;
  // fileCount?: number;
  type?: MATERIAL_TYPE_MAPS;
  needCount?: boolean;
  ids?: number[];
}

export interface MaterialShare {
  id: number;
  md5: number;
}

export interface MaterialDirectoryEntity{
  Name: string; // 目录节点名
  AdxId: string; // 目录节点名
  RootFolder: boolean; // 是否为根目录
  FolderLayer: number; // 层级 1为默认文件夹同级
  ParentId?: string; // 父级目录id
  // FileCount: string; // 目录内文件数
  Type: MATERIAL_TYPE_MAPS; // 目录下素材类型
  Share?: MaterialShare[]; // 推送信息
}

export interface MaterialDirectoryResult extends MaterialDirectoryEntity {
  SubFolder?: number;
}
